package com.lovegu.object.up;

/**
 * @author 老顾
 * @title: UserTest
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/20 17:09
 */
public class UserTest {
    public static void main(String[] args) {
        User user1 = new User();
        user1.age = 10;
        User user2 = new User();
        System.out.println(user2.age);//0
    }
}
class User{
    //属性（或成员变量）
    String name;
    int age ;
}
